package com.lzx.dormsys.bean;

import com.lzx.dormsys.core.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * area对象 dms_area
 *
 * @author lzx
 * @date 2021-09-10
 */
public class AreaBean extends TreeEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 位置编号
     */
    private Long areaId;


    /**
     * 位置名称
     */
    private String areaName;


    /**
     * 所属部门
     */
    private Long deptId;


    /**
     * 房间类型
     */
    private Long roomtypeId;


    /**
     * 余床数
     */
    private Long remainbedNum;


    /**
     * 备注
     */
    private String mark;

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setRoomtypeId(Long roomtypeId) {
        this.roomtypeId = roomtypeId;
    }

    public Long getRoomtypeId() {
        return roomtypeId;
    }

    public void setRemainbedNum(Long remainbedNum) {
        this.remainbedNum = remainbedNum;
    }

    public Long getRemainbedNum() {
        return remainbedNum;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getMark() {
        return mark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("areaId", getAreaId())
                .append("areaName", getAreaName())
                .append("parentId", getParentId())
                .append("ancestors", getAncestors())
                .append("deptId", getDeptId())
                .append("roomtypeId", getRoomtypeId())
                .append("remainbedNum", getRemainbedNum())
                .append("mark", getMark())
                .toString();
    }
}
